export function getDate() {
  const date = new Date();
  const day = date.getDate();
  const month = date.getMonth() + 1;
  const year = date.getFullYear();

  return {
    getYear() {
      return year;
    },
    getMonth() {
      return month;
    },
    getDay() {
      return day;
    },
    getYearStartDate() {
      return `${year}0101`;
    },
    getYearEndDate() {
      return `${year}1231`;
    }
  }
}